/*!*********************************************************************************
 * X2Engine Open Source Edition is a customer relationship management program developed by
 * X2 Engine, Inc. Copyright (C) 2011-2019 X2 Engine Inc.
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License version 3 as published by the
 * Free Software Foundation with the addition of the following permission added
 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
 * IN WHICH THE COPYRIGHT IS OWNED BY X2ENGINE, X2ENGINE DISCLAIMS THE WARRANTY
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 * 
 * You can contact X2Engine, Inc. P.O. Box 610121, Redwood City,
 * California 94061, USA. or at email address contact@x2engine.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2 Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2 Engine".
 **********************************************************************************/




@import "standards";
@import "colors";
@import "../fontsStandalone";
@import "icons";

@include Montserrat;

$box-size: 100px;

// Inset box shadow on media squares
$box-shadow: inset 0 0 15px rgba(0,0,0,.1),inset 0 0 0 1px rgba(0,0,0,.05);

.media-dialog.ui-widget-content {
    &, & .ui-dialog-buttonpane.ui-widget-content {
        background: $lightestGray;
        /* @theme background: content */
    }
}

#image-selector {
	padding: 10px;

    // List View overrides
    .list-view {
        .summary {
            display: none;
            /* @theme color: text */
        }

        .items, 
        .pager {
            background: none;
            border: none;
        }
    }	

    #media-details,
    #media-options {
        box-sizing: border-box;
        float: left;
    }

    #media-details {
        padding-right: 10px;
        width: 60%;
    }

    #media-options {
        width: 40%;
    
        padding: 10px;

        border: 1px solid $lightGray;
        border-radius: 2px;
        
        /* @theme border-color: border */

        height: 100%;

        .row {
            label, input {
                display: inline-block;
            }

            :first-child {
                min-width: 100px;
            }

            [type=number] {
                max-width: 75px;
            }
            
            min-width: 100px;
        }

        & > div > span {
            // float: right;
        }
    }
    
    #media-insert {
        width: 100%;
    }

    .media-upload-row {
        padding: 10px 0px;
    }

    .media-square {
        display: inline-block;

        width: $box-size;
        height: $box-size;

        line-height: $box-size;

        padding: 10px;
        margin-right: 5px;
        margin-bottom: 5px;

        box-shadow: $box-shadow;
        border: 2px solid transparent;

        text-align: center;
        vertical-align: top;

        overflow: hidden;

        &.template {
            display: none;
        }

        img {
        	vertical-align: middle;
        }

        &:hover {
        	border-color: lighten($lightBlue, 10%);
            /* @theme border-color: highlight2 */
        }

        &.active {
            border-color: $lightBlue;
            /* @theme border-color: highlight2 */
        }
    }
}
